%div.photos
  - @photos.each do |photo|
    %div.photo_container
      %div.photo
        %a{:href => photo_url(photo)}
          %img.photo_thumb{:src => photo.public_filename(:thumb), :title => "#{photo.caption}"}
      %div.photo_info
        %p.listing{:style => "display: none"}= pluralize(photo.galleries.count, "gallery")
        %p.listing{:style => "display: none"}= pluralize(photo.users.count, "user")
        %p.listing{:style => "display: none"}= pluralize(photo.comments.count, "comment")